﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="ModernShopping.Search" MasterPageFile="~/ModernShopping.Master" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <div class="div-center">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="title">
            <asp:Label ID="Label1"
                runat="server"
                Text="DANH SÁCH SẢN PHẨM" Width="100%" BorderStyle="None" />
        </div>
        <div class="add-product">
            <div style="width: 90%; margin: 30px auto 30px auto; text-align: right;">
                <asp:DataList runat="server" ID="dlProduct" RepeatColumns="3" CellPadding="10" CellSpacing="10" Width="100%">
                    <ItemTemplate>
                        <table style="width: 250px; height: 200px;">
                            <tr>
                                <td colspan="2" style="text-align: center">
                                    <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl='<%#Eval("PostBackUrl") %>' Width="150px" Height="150px">
                                        <asp:Image ID="Image3" runat="server" Height="150px" ImageUrl='<%#Eval("ImageUrl") %>' Width="150px" />
                                    </asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20%;">
                                    <asp:Label ID="Label6" runat="server" Text="Tên:"></asp:Label>
                                </td>
                                <td style="width: 80%;" class="auto-style3">
                                    <asp:Label ID="lblTenSanPham" runat="server" Width="100%" Text='<%#Eval("Name") %>' style="text-align: left"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 20%;">
                                    <asp:Label ID="Label7" runat="server" Text="Giá:"></asp:Label>
                                </td>
                                <td style="width: 80%; text-align: left;" class="auto-style3">
                                    <asp:Label ID="lblGiaSanPham" runat="server" Text='<%#Eval("Price") %>' style="text-align: left"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
                <cc1:CollectionPager ID="CollectionPager" runat="server"
                    BackNextDisplay="Buttons" BackNextLocation="Split"
                    BackText="Trang trước"
                    NextText="Trang sau"
                    ControlCssClass="ColectionPagerCss"
                    PageNumbersDisplay="Numbers"
                    PageSize="9" QueryStringKey="Page"
                    MaxPages="5"
                    HideOnSinglePage="True" LabelStyle="" LabelText="" PageNumbersSeparator="&amp;nbsp;" ResultsFormat="">
                </cc1:CollectionPager>
            </div>
        </div>
    </div>

</asp:Content>
